#!/bin/bash
python manage.py makemigrations && python manage.py migrate &&
# if [ ! -d static -o "$(ls -A static)" = "" ]; then
#     python manage.py collectstatic  
# fi
python manage.py collectstatic --noinput
# python manage.py runserver 0.0.0.0:8000
cp -rf dist static
uwsgi  --ini /app/fakebo/uwsgi.ini &
rm -rf celerybeat*
celery -A fakebo worker -l info -f /app/logs/celery.log &
celery -A fakebo beat